package homework;

import java.text.Format;

/**
 * @ClassName Sumtest
 * @Description TODO
 * @Author 黑白灰色雨
 * @Date 2024/8/26 15:36
 * @Version 1.0
 */
public class Sumtest {

    int sum=0;
    public int Sum(){
        for(int i=1;i<101;i++){
            if(i%2!=0)
             sum+=i;
        }
        return sum;
    }
}
